// history模式
import {
    createRouter,
    createWebHashHistory,
} from 'vue-router'

import TableServe from '../components/TableLinkServe/Table.vue'
import TableStudy from '../components/TableStudy/index.vue'


const routes = [
// 路由的默认路径
    // {
    //     path:'/',
    //     redirect:"/tablestudy"
    // },
    {
        path: '/tableserve',
        component: TableServe
    },
    {
        path: '/tablestudy',
        component: TableStudy
    },
]

// 创建路由对象
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router;
